package com.ehome.poct.base.dao.mapping;

import com.ehome.poct.base.api.vo.device.TestDeviceBootingHistVO;
import com.ehome.poct.base.dao.device.entity.TestDeviceBootingDetailDO;
import com.ehome.poct.base.dao.device.entity.TestDeviceBootingHistDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface DeviceBootMapping {

    @Mapping(source = "bootingCheckTime",target = "createTime")
    TestDeviceBootingHistVO to(TestDeviceBootingHistDO dto);

    List<TestDeviceBootingHistVO> toList(List<TestDeviceBootingHistDO> dtos);
}
